<template>
  <ul>
    <router-link to="/home/hit" custom v-slot="{ navigate, isActive }">
      <li @click="navigate">
        <span :class="isActive ? 'myActive' : ''">正在热映</span>
      </li>
    </router-link>
    <router-link to="/home/upcoming" custom v-slot="{ navigate, isActive }">
      <li @click="navigate">
        <span :class="isActive ? 'myActive' : ''">即将上映</span>
      </li>
    </router-link>
  </ul>
</template>
<script>
export default {}
</script>
<style scoped lang='scss'>
$color: #ff5f16;
ul {
  display: flex;
  list-style: none;
  height: 48px;
  li {
    flex: 1;
    display: flex;
    justify-content: center;
    font-size: 14px;
    span {
      height: 100%;
      line-height: 48px;
    }
  }
}
.myActive {
  color: $color;
  border-bottom: 2px solid $color;
}
</style>
